<!--#include file="Config.asp" -->
<!--#include file="HeadTop.asp"-->
<%
If Request.Form <> "" Then
	EduId =Trim(Request.Form("EduId"))
	EduBeginDate =Trim(Request.Form("EduBeginDate"))
	EduEndDate =Trim(Request.Form("EduEndDate"))
	EduSchool =Trim(Request.Form("EduSchool"))
	EduProfession =Trim(Request.Form("EduProfession"))
	EduQualification =Trim(Request.Form("EduQualification"))
	EduNote =Trim(Request.Form("EduNote"))

	If EduId = "" Or IsNull(EduId) Or Not IsNumeric(EduId) Then EduId = 0

	Conn.Execute("update EduTbl set EduBeginDate = '"& EduBeginDate &"' , EduEndDate = '"& EduEndDate &"' , EduSchool = '"& EduSchool &"' , EduProfession = '"& EduProfession &"' , EduQualification = '"& EduQualification &"' , EduNote = '"& EduNote &"' where EduId = "& EduId &" and PerId = "& session("AnyPIM_userID"))

response.redirect "EducationExperience.asp"
End If

EduId =Trim(Request.QueryString("EduId"))

If EduId = "" Or IsNull(EduId) Or Not IsNumeric(EduId) Then EduId = 0

Rs.Open "select * from EduTbl where EduId = "& EduId &" and PerId = "& session("AnyPIM_userID") , Conn , 1 , 1
If Rs.Eof Then
	EduBeginDate = ""
	EduEndDate = ""
	EduSchool = ""
	EduProfession = ""
	EduQualification = ""
	EduNote = ""
Else
	EduBeginDate = Rs("EduBeginDate")
	EduEndDate = Rs("EduEndDate")
	EduSchool = Rs("EduSchool")
	EduProfession = Rs("EduProfession")
	EduQualification = Rs("EduQualification")
	EduNote = Rs("EduNote")
End If
Rs.Close
%>

<script language="javascript">
	function CheckForm()
	{
		if(!checkLength("EduBeginDate" , "开始时间" , 1 , 20))
			return false;
		if(!checkLength("EduSchool" , "学校" , 1 , 100))
			return false;
		if(!checkLength("EduProfession" , "专业" , 1 , 100))
			return false;
		if(PerForm.EduQualification.value == "")
		{
			alert("请选择学历");
			return false;
		}
		if(!checkLength("EduNote" , "专业描述" , 0 , 500))
			return false;
		return true;
	}
</script>
<TABLE class="table table-condensed">
<form id="PerForm" name="PerForm" method="post" action="Edu_Edit.asp" onsubmit="return CheckForm();">
	<tr bgcolor='#f6f6f6'>
		<td width="13%" bgcolor='#ddeeff'><font color="#FF0000">*</font>时间：
		<input name="EduId" type="hidden" id="EduId" value="<%=EduId%>" /></td>
		<td width="87%" >从
			<input name="EduBeginDate" type="text" class="Wdate" onClick="WdatePicker()" value="<%=EduBeginDate%>" size="16" />
			到
			<input name="EduEndDate" type="text" class="Wdate" onClick="WdatePicker()" value="<%=EduEndDate%>" size="16" />
		(格式：2007-09，后面一项目不填表示至今)</td>
	</tr>
	<tr>
		<td bgcolor='#ddeeff'><font color="#FF0000">*</font>学校：</td>
		<td ><input name="EduSchool" type="text" class="input_bk_D2D2D2" id="EduSchool" value="<%=EduSchool%>" size="50" /></td>
	</tr>
	<tr>
		<td bgcolor='#ddeeff'><font color="#FF0000">*</font>专业：</td>
		<td ><input name="EduProfession" type="text" class="input_bk_D2D2D2" id="EduProfession" value="<%=EduProfession%>" size="30" /></td>
	</tr>
	<tr>
		<td bgcolor='#ddeeff'><font color="#FF0000">*</font>学历：</td>
		<td ><select name="EduQualification" class="input_bk_D2D2D2" id="EduQualification">
		<option value="" <%If EduQualification = "" Then Response.Write("selected")%>>请选择</option>
		<%
		Rs.Open "select * from QualificationTbl order by QualificationId asc" , Conn , 1 , 1
		Do While Not Rs.Eof
			Response.Write("<option value="""& Rs("QualificationName") &""" ")
			If Rs("QualificationName") = EduQualification Then Response.Write("selected")
			Response.Write(">"& Rs("QualificationName") &"</option>")
		Rs.MoveNext
		Loop
		Rs.Close
		%>
	</select></td>
	</tr>
	<tr>
		<td bgcolor='#ddeeff'>专业描述：</td>
		<td ><textarea name="EduNote" cols="50" rows="10" id="EduNote" style="display:none"><%=EduNote%></textarea>
<IFRAME ID="eWebEditor1" src="_Editor/ewebeditor.asp?id=EduNote&style=s_exampleremote" frameborder="0" scrolling="no" width="100%" height="350"></IFRAME></td>
	</tr>
	<tr>
		<td bgcolor='#ddeeff'>&nbsp;</td>
		<td ><input type="submit" name="Submit" value=" 修  改 " />
<input type="reset" name="Submit" value=" 重  置 " />
</td>
	</tr>
			</table>
</form>

<!-- #include file="foot.asp" -->
